package com.itheima.service;

import com.itheima.common.entity.PageResult;
import com.itheima.pojo.Order;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

@Service
public interface OrderService {
    PageResult findPageByCode(Pageable pageable, String queryString);

    PageResult findPageByName(Pageable pageable, String queryString);

    PageResult findPageDefault(Pageable pageable);

    boolean update(Order order);

    Order findById(Integer id);
}
